/* 
 * File:   EntityContactInfo.cpp
 * Author: RedEyedKiller
 * 
 * Created on 19 Ιούνιος 2011, 1:08 μμ
 */

#include "EntityContactInfo.h"

namespace physicsSystem
{
namespace PhysicsInternals
{

EntityContactInfo::EntityContactInfo(EntitySystem::Entity* collidedWith_
            , const Math::Vector2F & contactNormal_
            , const Math::Vector2F & relativeVelocity_)
: collidedWith(collidedWith_), contactNormal(contactNormal_)
,relativeVelocity(relativeVelocity_)
{
}

void EntityContactInfo::SetContactNormal(const Math::Vector2F& contactNormal)
{
    this->contactNormal = contactNormal;
}

Math::Vector2F EntityContactInfo::GetContactNormal()
{
    return contactNormal;
}

void EntityContactInfo::SetCollidedWith(EntitySystem::Entity* collidedWith)
{
    this->collidedWith = collidedWith;
}

EntitySystem::Entity* EntityContactInfo::GetCollidedWith()
{
    return collidedWith;
}

EntitySystem::Entity& EntityContactInfo::scGetCollidedWith() const
{
    return *collidedWith;
}

Math::Vector2F EntityContactInfo::GetRelativeVelocities() const
{
    return relativeVelocity;
}

}
}